﻿
function ShowEditModal(destURL) {
        var frame = $get('frameeditexpanse');
        frame.src = destURL;
        $find('EditModalPopup').show();
    }
    function EditCancelScript() {
        var frame = $get('IframeEdit');
        frame.src = "DemoLoading.aspx";
    }
    function EditOkayScript() {
        RefreshDataGrid();
        EditCancelScript();
    }
    function RefreshDataGrid() {
        $get('<%= Button1.ClientID %>').click();
    }
    function NewExpanseOkay() {
        $get('<%= Button1.ClientID %>').click();
    }
    function printDiv() {
        var toprint = document.getElementById('divPrint').innerHTML;


        document.body.innerHTML = toprint;

        window.print();


    }
